package org.hy.persistence.global;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.hy.domain.global.BlackList;

/**
 * 黑名单映射器
 * @author Tom.Feng
 *
 */
public interface BlackListMapper {
	BlackList findBlackListById(Integer id);
	
	List<BlackList> findBlackListsByUid(@Param("uid") int uid,@Param("offset")int offset,@Param("size")int size);
	
	int insertBlackList(BlackList blackList);
	
	int deleteBlackList(Integer id);
	
	/**
	 * 主要可能更新黑的模块
	 * @param blackList
	 * @return
	 */
	int updateBlackList(BlackList blackList);
}
